package com.cheng.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cheng.data.entity.BorrowInfoEntity;
import com.cheng.data.vo.BorrowInfoVO;
import com.cheng.data.vo.NoticeVO;
import com.cheng.data.vo.StatisticsVO;

import java.util.List;
import java.util.Map;

/**
 * @author: ChengJW
 * @date: 2021/12/20 20:12
 * @version: 1.0
 * @description:
 */
public interface BorrowInfoMapper extends BaseMapper<BorrowInfoEntity> {

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: java.util.List<com.cheng.data.vo.BorrowInfoVO>
    * @date: 2021/12/21
    * @description: 查询待归还借阅信息
    */
    List<BorrowInfoVO> queryBorrowInfoVOList(Map<String,Object> map);

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: com.cheng.data.vo.StatisticsVO
    * @date: 2021/12/21
    * @description: 统计单个机关借阅信息
    */
    List<StatisticsVO> queryStatisticsBrowVOListByCode(Map<String,Object> map);

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: com.cheng.data.vo.StatisticsVO
    * @date: 2021/12/21
    * @description: 统计所有分局借阅信息
    */
    List<StatisticsVO> queryStatisticsBrowVOList(Map<String,Object> map);

    /**
     * @author: ChengJW
     * @params: [map]
     * @return: java.util.List<com.cheng.data.vo.NoticeVO>
     * @date: 2021/12/21
     * @description: home 页面关于借阅信息的提醒
     */
    NoticeVO queryBorrowInfoNoticeVO(Map<String,Object> map);
}
